package com.haoze.nurse.model;

import com.haoze.common.model.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 病历模板明细表
 * @author fcx
 * @date 2019年3月6日13:21:57
 */
@Table(name = "EMR_TEMPLATE_DETAIL_NEW")
public class EmrTemplateDetailEntity extends BaseEntity {

    @Id
    @Column(name = "TPL_DETAIL_ID")
    private String tplDetailId; // 病历模板明细ID，，，主键

    @Column(name = "TPL_ID")
    private String tplId; // 病历模板ID，，，关联EMR_TEMPLATE.TPL_ID

    @Column(name = "SORT_ID")
    private Integer sortId; // 排序号

    @Column(name = "DATASETDETAIL_ID")
    private String datasetDetailId; // 数据集-数据元数据ID，，，关联SYS_DATA_SET_DETAIL. DATASETDETAIL_ID

    @Column(name = "DATASET_ID")
    private String datasetId; // 数据集数据ID，，，关联EMR_DATA_SET.DATASET_ID

    @Column(name = "ELEMENT_ID")
    private String elementId; // 数据元数据ID，，，关联EMR_DATA_ELEMENT.ELEMENT_ID

    @Column(name = "ELEMENT_REMARK")
    private String elementRemark; // 定义，，，数据元含义描述

    @Column(name = "PARENT_DATASETDETAIL_ID")
    private String parentDatasetDetailId; // 上级数据集-数据元数据ID，，，关联SYS_DATA_SET_DETAIL. DATASETDETAIL_ID

    @Column(name = "PARENT_DATASET_ID")
    private String parentDatasetId; // 上级数据集ID，，，关联EMR_DATA_SET.DATASET_ID

    @Column(name = "PARENT_ELEMENT_ID")
    private String parentElementId; // 上级数据元ID，，，关联EMR_DATA_ELEMENT.ELEMENT_ID

    @Column(name = "QUOTE_DATASETDETAIL_ID")
    private String quoteDatasetDetailId; // 引用数据集-数据元数据ID，，，关联SYS_DATA_SET_DETAIL. DATASETDETAIL_ID

    @Column(name = "QUOTE_DATASET_ID")
    private String quoteDatasetId; // 引用数据集ID，，，关联EMR_DATA_SET.DATASET_ID

    @Column(name = "QUOTE_ELEMENT_ID")
    private String quoteElementId; // 引用数据元ID，，，关联EMR_DATA_ELEMENT.ELEMENT_ID

    @Column(name = "QUOTE_TPL_DETAIL_ID")
    private String quoteTplDetailId; // 引用数据元模板数据ID，，，关联EMR_TEMPLATE_DETAIL.TPL_DETAIL_ID

    @Column(name = "DATA_VALUE")
    private String dataValue; // 数据文本值

    @Column(name = "DATA_CODE")
    private String dataCode; // 数据文本编码

    @Column(name = "SHOW_IDENTIFICATION")
    private String showIdentification; // 0-显示，1-不显示

    @Column(name = "PRINT_IDENTIFICATION")
    private String printIdentification; // 0-打印，1-不打印

    @Column(name = "DELETE_IDENTIFICATION")
    private String deleteIdentification; // 书写内 0-删除，1-不删除

    @Column(name = "PARENT_TPL_DETAIL_ID")
    private String parentTplDetailId;

    @Column(name = "BASE_TPL_DETAIL_ID")
    private String baseTplDetailId;

    @Column(name = "ELEMENT_PROPERTY")
    private String elementProperty; // 0-无设置 1-非编辑区 2-编辑区 3-签名区

    @Column(name = "MEDICAL_ID")
    private String medicalId; //医疗术语id

    @Column(name = "CLASS_NAME_ID")
    private String classNameId;

    @Column(name = "DATA_NO")
    private String dataNo;

    @Column(name = "SHOW_TYPE")
    private String showType; //模板展示方式：0-平铺方式，1-树形加载方式

    @Column(name = "NEED_CHANGED")
    private String needChanged; //0:需要，1：不需要

    @Column(name = "UPDATE_FLAG")
    private String updateFlag;//0:更新，1：已查阅

    @Column(name = "DELETABLE")
    private String deletable;//模板内是否可删除  0-可，1-不可

    @Column(name = "QUOTE_DETAIL_TYPE")
    private String quoteDetailType;//0全院，1科室

    @Column(name = "UNIT")
    private String unit;

    private String varCode;

    private String quoteNodeType;//3数据集下的数据元，4病历目录，5当前模板

    public String getQuoteNodeType() {
        return quoteNodeType;
    }

    public void setQuoteNodeType(String quoteNodeType) {
        this.quoteNodeType = quoteNodeType;
    }

    public String getVarCode() {
        return varCode;
    }

    public void setVarCode(String varCode) {
        this.varCode = varCode;
    }

    public String getTplDetailId() {
        return tplDetailId;
    }

    public void setTplDetailId(String tplDetailId) {
        this.tplDetailId = tplDetailId;
    }

    public String getTplId() {
        return tplId;
    }

    public void setTplId(String tplId) {
        this.tplId = tplId;
    }

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    public String getParentTplDetailId() {
        return parentTplDetailId;
    }

    public void setParentTplDetailId(String parentTplDetailId) {
        this.parentTplDetailId = parentTplDetailId;
    }

    public String getDatasetDetailId() {
        return datasetDetailId;
    }

    public void setDatasetDetailId(String datasetDetailId) {
        this.datasetDetailId = datasetDetailId;
    }

    public String getDatasetId() {
        return datasetId;
    }

    public void setDatasetId(String datasetId) {
        this.datasetId = datasetId;
    }

    public String getElementId() {
        return elementId;
    }

    public void setElementId(String elementId) {
        this.elementId = elementId;
    }

    public String getElementRemark() {
        return elementRemark;
    }

    public void setElementRemark(String elementRemark) {
        this.elementRemark = elementRemark;
    }

    public String getParentDatasetDetailId() {
        return parentDatasetDetailId;
    }

    public void setParentDatasetDetailId(String parentDatasetDetailId) {
        this.parentDatasetDetailId = parentDatasetDetailId;
    }

    public String getParentDatasetId() {
        return parentDatasetId;
    }

    public void setParentDatasetId(String parentDatasetId) {
        this.parentDatasetId = parentDatasetId;
    }

    public String getParentElementId() {
        return parentElementId;
    }

    public void setParentElementId(String parentElementId) {
        this.parentElementId = parentElementId;
    }

    public String getQuoteDatasetDetailId() {
        return quoteDatasetDetailId;
    }

    public void setQuoteDatasetDetailId(String quoteDatasetDetailId) {
        this.quoteDatasetDetailId = quoteDatasetDetailId;
    }

    public String getQuoteDatasetId() {
        return quoteDatasetId;
    }

    public void setQuoteDatasetId(String quoteDatasetId) {
        this.quoteDatasetId = quoteDatasetId;
    }

    public String getQuoteElementId() {
        return quoteElementId;
    }

    public void setQuoteElementId(String quoteElementId) {
        this.quoteElementId = quoteElementId;
    }

    public String getDataValue() {
        return dataValue;
    }

    public void setDataValue(String dataValue) {
        this.dataValue = dataValue;
    }

    public String getDataCode() {
        return dataCode;
    }

    public void setDataCode(String dataCode) {
        this.dataCode = dataCode;
    }

    public String getShowIdentification() {
        return showIdentification;
    }

    public void setShowIdentification(String showIdentification) {
        this.showIdentification = showIdentification;
    }

    public String getPrintIdentification() {
        return printIdentification;
    }

    public void setPrintIdentification(String printIdentification) {
        this.printIdentification = printIdentification;
    }

    public String getQuoteTplDetailId() {
        return quoteTplDetailId;
    }

    public void setQuoteTplDetailId(String quoteTplDetailId) {
        this.quoteTplDetailId = quoteTplDetailId;
    }

    public String getBaseTplDetailId() {
        return baseTplDetailId;
    }

    public void setBaseTplDetailId(String baseTplDetailId) {
        this.baseTplDetailId = baseTplDetailId;
    }

    public String getDeleteIdentification() {
        return deleteIdentification;
    }

    public void setDeleteIdentification(String deleteIdentification) {
        this.deleteIdentification = deleteIdentification;
    }

    public String getElementProperty() {
        return elementProperty;
    }

    public void setElementProperty(String elementProperty) {
        this.elementProperty = elementProperty == null ? null : elementProperty.trim();
    }

    public String getMedicalId() {
        return medicalId;
    }

    public void setMedicalId(String medicalId) {
        this.medicalId = medicalId;
    }

    public String getClassNameId() {
        return classNameId;
    }

    public void setClassNameId(String classNameId) {
        this.classNameId = classNameId;
    }

    public String getDataNo() {
        return dataNo;
    }

    public void setDataNo(String dataNo) {
        this.dataNo = dataNo;
    }

    public String getShowType() {
        return showType;
    }

    public void setShowType(String showType) {
        this.showType = showType;
    }

    public String getNeedChanged() {
        return needChanged;
    }

    public void setNeedChanged(String needChanged) {
        this.needChanged = needChanged;
    }

    public String getUpdateFlag() {
        return updateFlag;
    }

    public void setUpdateFlag(String updateFlag) {
        this.updateFlag = updateFlag;
    }

    public String getDeletable() {
        return deletable;
    }

    public void setDeletable(String deletable) {
        this.deletable = deletable;
    }

    public String getQuoteDetailType() {
        return quoteDetailType;
    }

    public void setQuoteDetailType(String quoteDetailType) {
        this.quoteDetailType = quoteDetailType;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
